package service.impl;

import java.util.ArrayList;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import dao.GroupDao;

import pojo.Group;
import service.GroupService;

@Service("GroupService")
public class GroupServiceImpl implements GroupService {

	@Autowired
	private GroupDao groupDao;

	public List<Group> findCanJoin() {
		Group group=new Group();
		List<Group> listGroup = this.groupDao.findByParam(group);
		return listGroup;
	}

}
